<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=request.getContextPath() %>/static/common/plugin/bootstrap-3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="<%=request.getContextPath() %>/static/common/plugin/toaster/css/toastr.css">
<title>用户修改</title>
</head>
<body>
	<center><h1>用户修改</h1></center>
	
	<form class="form-horizontal" action="<%=request.getContextPath() %>/SysUserServlet?command=update&id=${sysUser.id }" method="post">
	 
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">帐号 </label>
    <div class="col-sm-5">
      <input type="text" class="form-control" id="code" name="code" value="${sysUser.code }" >
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">姓名</label>
    <div class="col-sm-5">
      <input type="text" class="form-control" id="username" name="username" value="${sysUser.username }" >
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">性别</label>
    <div class="col-sm-5">
      <input type="text" class="form-control" id="inputPassword3" value=" <c:if test="${sysUser.sex==1 }">
          	${sysUser.userSex }
          </c:if>
          <c:if test="${sysUser.sex==2 }">
          	${sysUser.userSex }
          </c:if>" disabled="disabled" >
    </div>
  </div>
   <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">所属角色 </label>
    <div class="col-sm-5">
      <input type="text" class="form-control" id="name" name="name" value="${sysUser.name }" disabled="disabled" >
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">创建时间</label>
    <div class="col-sm-5">
      <input type="text" class="form-control" id="inputPassword3" value="<f:formatDate value="${sysUser.createTime }" pattern="yyyy-MM-dd"/> " disabled="disabled">
    </div>
  </div>
  
  
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-default">修改</button>
    </div>
  </div>

</form>

  
	
	<script src="<%=request.getContextPath() %>/static/common/jquery.min.js"></script>
	<script src="<%=request.getContextPath() %>/static/common/plugin/bootstrap-3.3.5/js/bootstrap.min.js"></script>
</body>
</html>